package com.example.service;

import com.example.pojo.Employee;

import java.util.Collection;

public interface EmployeeService {

    //增加一个员工
    public void save(Employee employee);

    //查询全部员工信息
    public Collection<Employee> getAll();

    //查询员工通过id
    public Employee getEmployeeById(Integer id);

    //查询员工通过用户名
    public Employee getEmployeeByName(String lastName);

    //删除员工通过id
    public void delete(Integer id);

    //修改员工信息
    public void update(Employee employee);
}
